#ifndef __REST_SERVER_H__
#define __REST_SERVER_H__

#include <esp_err.h>

#define REST_SERVER_MAX_APPENDED_URI_NUM 4

typedef struct rest_server_context rest_server_context_t;

typedef struct rest_server_init_params {
    const char          *base_path;
    const httpd_uri_t   *appended_uri[REST_SERVER_MAX_APPENDED_URI_NUM];
} rest_server_init_params_t;

esp_err_t start_rest_server(rest_server_init_params_t *init_params, rest_server_context_t **pp_ctx);
void stop_rest_server(rest_server_context_t *p_ctx);

#endif /* __REST_SERVER_H__ */
